﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace App.Service
{
    public class ModuleStorage
    {
        protected Dictionary<string, IAppModule> modules_ = new Dictionary<string, IAppModule>();

        public IEnumerable Keys
        {
            get { return modules_.Keys; }
        }

        public bool ContainsKey(string assembly)
        {
            return modules_.ContainsKey(assembly);
        }

        public void Add(string assembly, object o)
        {
            modules_.Add(assembly, null);
        }
        public IAppModule this[string assembly]
        {
            get { return modules_[assembly]; }
            set
            {
                modules_[assembly] = value;
            }

        }
    }
}